package com.brin.code.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.brin.code.dao.NavigationDao;
import com.brin.code.model.pojo.NavigationPOJO;
import com.brin.code.service.NavigationEntityService;
import com.brin.core.base.service.EntityService;

public class NavigationEntityServiceImpl extends EntityService implements NavigationEntityService{

	@Override
	public boolean addNavigation(NavigationPOJO navigation) {
		return navigationDao.addNavigation(navigation) > 0 ? true : false;
	}

	@Override
	public boolean deleteNavigationById(NavigationPOJO navigation) {
		return navigationDao.deleteNavigationById(navigation) > 0 ? true : false;
	}

	@Override
	public boolean updateNavigationById(NavigationPOJO navigation) {
		return navigationDao.updateNavigationById(navigation) > 0 ? true : false;
	}
	
	@Autowired
	private NavigationDao navigationDao;

	public NavigationDao getNavigationDao() {
		return navigationDao;
	}

	public void setNavigationDao(NavigationDao navigationDao) {
		this.navigationDao = navigationDao;
	}

}
